export interface ResponseData {
    "code": number,
    "msg": string,
}

// 用户信息的数据类型
export interface UserInfo {
    "_id": string,
	"userName": string,
	"password": string,
	"avatar": string,
	"phone": string,
	"realName": string,
	"mail": string,
	"money": string
}

//获取用户信息接口返回的数据的ts类型
export interface UserInfoResponseData extends ResponseData {
    data: UserInfo
}

export interface Data {
	userName: string;
	token: string;
}
// 用户登录接口返回的数据的ts类型
export interface UserLoginResponseData extends ResponseData {
	data: Data;
}

// 用户登录接口需要携带参数类型
export interface UserData {
    userName: string,
    password: string
}

